import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';
import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'mdi:earth',
      title: $t('page.gis.title'),
      keepAlive: true,
      hideChildrenInMenu: true,
    },
    name: 'GIS',
    path: '/gis',
    redirect: '/gis/index',
    children: [
      {
        component: () => import('#/views/gis/index.vue'),
        meta: {
          title: $t('page.gis.title'),
        },
        name: 'GIS',
        path: '/gis/index',
      }
    ]
  },
];

export default routes;
